package com.gqmk.demo.springcloudfeign.service;

import com.gqmk.demo.springcloudapi.domain.Demo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(value = "DEMO-PROVIDER", fallbackFactory = DemoHystrixServiceFallbackFactory.class)
@Service
public interface DemoFeignService {
    @GetMapping("/provider/demo")
    Demo getDemo();
}

